{include file = 'f-header.tpl'}
<div class="main">
			<div class="sg_top">
				<span>{$name}</span>
				<div class="mbx">
					<a href="#">{$lang.catogry}</a>  >  <a href="#">{$class}</a>
				</div>
			</div>
			<div class="sg_info">
				<div class="txt_info">
					<div>
						<span class="txt_left">{$lang.address}:</span><span class="txt_right">{$addres}</span>
					</div>
					<div>
						<span class="txt_left">{$lang.cap}:</span><span class="txt_right">{$cap}</span>
					</div>
					<div>
						<span class="txt_left">{$lang.city}:</span><span class="txt_right">{$city}</span>
					</div>
					<div>
						<span class="txt_left">{$lang.area}:</span><span class="txt_right">{$area}</span>
					</div>
					<div>
						<span class="txt_left">{$lang.tel}:</span><span class="txt_right">{$tel}</span>
					</div>
					<div>
						<span class="txt_left">{$lang.openTime}:</span><span class="txt_right">{$openTime}</span>
					</div>
					<div class="clear"></div>
				</div>
				<div class="img_info">
					<img src="{$pic}" />
				</div>
				<div class="clear"></div>
			</div>
			<div class="sg_tabs">
				<span class="tab_hover" for="detail">{$lang.info}</span>
				<span class="tab" for="photos">{$lang.photo}</span>
				<span class="tab">{$lang.class}</span>
				<span class="tab" for="price">{$lang.price}</span>
				<span class="tab" for=map>{$lang.address}</span>
				<span class="tab" for="comment">{$lang.comment}</span>
				<div class="clear"></div>
			</div>
			<div id="sg_cont" class="sg_cont">
                    <p>
                        {$detail} 
                    </p>
            </div>

            <div style="display:none">

                <div id="detail">
                    <p>
                        {$detail}; 
                    </p>
                </div>
                <div id="photos">
                    {foreach item="photo" key="key" from=$photos} 
                        <div class="single-photo">
                           <a class="gallery" href="javascript:popPic('{$baseUrl}{$photo.photo_url}');">
                                <img src="{$baseUrl}{$photo.photo_url}" /> 
                            </a>
                        </div>
                    {/foreach}
                    <div class="clear"></div>
                </div>
                <div id="price">
                    <p>
                        {$price}; 
                    </p>
                    </div>

                    <div id="map">

                    <div id="map_canvas" style=""></div>

                    {literal}
                    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
                    <script type="text/javascript">
                        var map;
                        var myOptions;
                        var markers=[];

                        var address={/literal}"{$google}"{literal};
                        address=address.split(",");
                        var x=address[0];
                        var y=address[1];
                        var latlng = new google.maps.LatLng(x,y);
                        initialize();
                        function initialize() {
                            myOptions = {
                                zoom: 12,
                                center: latlng,
                                mapTypeId: google.maps.MapTypeId.ROADMAP
                            };
                        map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);


                        }


                    var markerNew= new google.maps.Marker({
                        position: latlng, 
                        map: map 
                    });

                    </script>
                    {/literal}



                </div>


                <div id="comment">

                    你可以<a href='javascript:popup(addcomment)'><strong>发表评论</strong></a>
                                            <iframe name="iFrame1" width="800" height="400"  src="{$baseUrl}info/getComment?id={$id}" frameborder="0"></iframe>

                </div>


                <div id="addcomment" >
                            <form name="form2" method="post" action="{$baseUrl}info/addComment" >

                                <table>
                                <tr>
                                    <td>你的名字</td>
                                    <td><input name="name" type="text" /></td>
                                </tr>
                                <tr>
                                    <td>你的留言</td>
                                    <td>
                                        <textarea name="content" style="width:300px;height:200px;"></textarea>
                                    </td>
                                </tr>
                                    <!---
                                <tr>
                                    <td>你的打分</td>
                                    <td>
                                    <select name="level"> 
                                    <option value="1">一星</option>
                                    <option value="2">二星</option>
                                    <option value="3">三星</option>
                                    <option value="4">四星</option>
                                    <option value="5">五星</option>
                                    </select>

                                    </td>
                                </tr>
                                    -->
                                <tr>
                                    <td></td>
                                    <td><input style="width:60px;height:30px;" type="submit" value="提交" /></td>
                                </tr>
                            </table>
                            <input type="hidden" name="info_id" value="{$id}" />
                        </form>
                    </div>

            </div>
      <div class="clear"></div>
{include file = 'f-footer.tpl'}
